Global Index
HTML5 JS API Index > File System API Tutorials & Specs

EntrySync

Extended by DirectoryEntrySync, FileEntrySync

An abstract interface representing entries in a file system, each of which may be a FileEntrySync or DirectoryEntrySync.

Properties
FileSystemSync
filesystem
The file system on which the entry resides.
DOMString
fullPath
The full absolute path from the root to the entry.
boolean
isDirectory
EntrySync is a directory.
boolean
isFile
EntrySync is a file.
DOMString
name
The name of the entry, excluding the path leading to it.
Operations
EntrySync
copyTo(DirectoryEntrySync parent, optional DOMString newName)
Copy an entry to a different location on the file system.
Metadata
getMetadata()
Look up metadata about this entry.
DirectoryEntrySync
getParent()
Look up the parent DirectoryEntrySync containing this Entry. If this EntrySync is the root of its filesystem, its parent is itself. No parameters.Return type: DirectoryEntrySync
EntrySync
moveTo(DirectoryEntrySync parent, optional DOMString newName)
Move an entry to a different location on the file system.
void
remove()
Deletes a file or directory. It is an error to attempt to delete a directory that is not empty. It is an error to attempt to delete the root directory of a filesystem.
DOMString
toURL()
Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists.
Referenced by
DirectoryReaderSyncreadEntries()
LocalFileSystemSyncresolveLocalFileSystemSyncURL(...)